package com.cskaoyan.mall.mapper;
import com.cskaoyan.mall.bean.vo.OrderUserInfoVO;

import com.cskaoyan.mall.bean.User;
import com.cskaoyan.mall.bean.UserExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * @name zhangguannan
 * @Date 2021-01-09 20:34
 */

public interface UserMapper {
    long countByExample(UserExample example);

    int deleteByExample(UserExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    List<User> selectByExample(UserExample example);

    User selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") User record, @Param("example") UserExample example);

    int updateByExample(@Param("record") User record, @Param("example") UserExample example);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    Integer selectAll();

    OrderUserInfoVO  selectNicknameAndAvatarById(@Param("id")Integer id);

}